%p#notice= notice
%table.table.table-bordered
  %tr
    %th{style: "width:150px"}
      %strong 行业:
    %td
      = @credit_record.industry
  %tr
    %th
      %strong 被举报人:
    %td
      = @credit_record.person_reported_against
  %tr
    %th
      %strong 身份证号:
    %td
      = @credit_record.citizen_id
  %tr
    %th
      %strong 地址:
    %td
      = @credit_record.address
  %tr
    %th
      %strong 举报原因:
    %td
      = @credit_record.reported_reason
  %tr
    %th
      %strong 案发时间:
    %td
      = @credit_record.time_of_incident
  %tr
    %th
      %strong 举报人:
    %td
      = @credit_record.user.realname
  %tr
    %th
      %strong 状态:
    =render partial: 'record_workflow_operations', locals:{credit_record: @credit_record}
    -#%td{id:"cr-opts-#{@credit_record.id.to_s}"}
      = @credit_record.readable_state
  %tr
    %td{colspan: "2"}
      .row.evidence-picture
        - @credit_record.evidences.each do |evidence|
          .col-md-3
            = image_tag evidence.picture.url, style:"width:100%;cursor:pointer;", href: evidence.picture.url
-#= link_to '编辑', edit_credit_record_path(@credit_record), class: "btn btn-primary"
=link_to '返回灰名单列表', credit_records_path, class: "btn btn-default"

= stylesheet_link_tag 'http://cdn.bootcss.com/magnific-popup.js/1.0.0/magnific-popup.min.css'
= javascript_include_tag '//cdn.bootcss.com/magnific-popup.js/1.0.0/jquery.magnific-popup.min.js'


:javascript
  $('.evidence-picture').magnificPopup({
    delegate: 'img', // child items selector, by clicking on it popup will open
    type: 'image',
    gallery:{
      enabled:true
    }
    // other options
  });